package com.ruoyi.standingbook.sanitationvehicle.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.standingbook.sanitationvehicle.domain.bo.SanitationVehicleBo;
import com.ruoyi.standingbook.sanitationvehicle.domain.vo.SanitationVehicleImportDetailVo;
import com.ruoyi.standingbook.sanitationvehicle.domain.vo.SanitationVehiclePicVo;
import com.ruoyi.standingbook.sanitationvehicle.domain.vo.SanitationVehicleVo;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;

/**
 * 公园管养任务完成进度Service接口
 *
 * @author cc
 * @date 2023-08-29
 */
public interface ISanitationVehicleService {

    /**
     * 查询公园管养任务完成进度
     */
	SanitationVehicleVo queryById(String id);

    /**
     * 查询公园管养任务完成进度列表
     */
    TableDataInfo<SanitationVehicleVo> queryPageList(SanitationVehicleBo bo, PageQuery pageQuery);

    /**
     * 查询公园管养任务完成进度列表
     */
    List<SanitationVehicleVo> queryList(SanitationVehicleBo bo);

    /**
     * 新增公园管养任务完成进度
     */
    Boolean insertByBo(SanitationVehicleBo bo);

    /**
     * 修改公园管养任务完成进度
     */
    Boolean updateByBo(SanitationVehicleBo bo);

    /**
     * 校验并批量删除公园管养任务完成进度信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    Boolean batchInsertOrUpdate(List<SanitationVehicleImportDetailVo> voList);

    List<SanitationVehiclePicVo> getSanitationVehiclePicByDate(String date);

    BigDecimal getAreaSumByDate(String date);

    BigDecimal getAreaSumByDateAndCommunity(String date, String community);

    Integer getNumSumByDate(String date);
}
